-
Notifications
You must be signed in to change notification settings - Fork 364
♿️ Restore platform-centric menu names for showing in file manager #1311
Conversation
lib/tree-view.coffee
Outdated
@@ -560,13 +560,22 @@ class TreeView | |||
return unless filePath = @selectedEntry()?.getPath() | |||
|
|||
unless shell.showItemInFolder(filePath) | |||
atom.notifications.addWarning("Unable to show #{filePath} in file manager") | |||
atom.notifications.addWarning("Unable to show #{filePath} in #{@getFileManagerName().toLowerCase()}") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should probably leave the case unmodified here.
atom.notifications.addWarning("Unable to show #{filePath} in #{@getFileManagerName().toLowerCase()}") | |
atom.notifications.addWarning("Unable to show #{filePath} in #{@getFileManagerName()}") |
lib/tree-view.coffee
Outdated
|
||
showCurrentFileInFileManager: -> | ||
return unless filePath = atom.workspace.getCenter().getActiveTextEditor()?.getPath() | ||
|
||
unless shell.showItemInFolder(filePath) | ||
atom.notifications.addWarning("Unable to show #{filePath} in file manager") | ||
atom.notifications.addWarning("Unable to show #{filePath} in #{@getFileManagerName().toLowerCase()}") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should probably leave the case unmodified here.
atom.notifications.addWarning("Unable to show #{filePath} in #{@getFileManagerName().toLowerCase()}") | |
atom.notifications.addWarning("Unable to show #{filePath} in #{@getFileManagerName()}") |
Thanks @mattlubner!
No need to build Atom locally, you can follow this guide to link your modified version of tree view: https://flight-manual.atom.io/hacking-atom/sections/contributing-to-official-atom-packages/ I confirmed that tests aren't necessary in this case but it would be good if you can manual verify that things look ok on Windows, macOS, and Linux with your changes. |
Thanks! |
Description of the Change
Addresses #1307. Restore platform-centric menu names for showing files in the user's file manager.
Benefits
Possible Drawbacks
shell.showItemInFolder
opens a third-party file manager.Applicable Issues